package cn.xfdzx.android.apps.shop.activity;


import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import butterknife.BindView;
import butterknife.OnClick;
import cn.xfdzx.android.apps.shop.R;
import cn.xfdzx.android.apps.shop.base.BaseMvpActivity;

public class RecommendedActivity extends BaseMvpActivity {
    @BindView(R.id.iv_back)
    ImageView ivBack;      //标题栏-左边按钮
    @BindView(R.id.tv_title)
    TextView tv_title;      //标题栏-左边按钮


    @Override
    public int getLayoutId() {
        return R.layout.activity_recommended;
    }

    @Override
    public void initView() {
        if (null != getIntent().getStringExtra("title")) {
            tv_title.setText(getIntent().getStringExtra("title"));
        }
    }

    @Override
    public void showLoading() {

    }

    @Override
    public void hideLoading() {

    }

    @Override
    public void onError(Throwable throwable) {

    }


    @OnClick({R.id.iv_back})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.iv_back:    //返回按钮点击
                finish();
                break;

        }
    }
}
